package com.xmg.p2p.base.mapper;

import com.xmg.p2p.base.domain.Iplog;
import com.xmg.p2p.base.query.IplogQueryObject;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @BelongsProject: jinrong-website
 * @BelongsPackage: com.xmg.p2p.base.mapper
 * @author: Andy
 * @date: 2020.12.9 18:24
 * @Description: 登录日志的Mapper
 * @since JDK 1.8
 */
@Repository
public interface IplogMapper {

    int insert(Iplog record);

    /**
     * 如果有用户就会查询此用户的所有登录信息
     * （用的动态SQL查询）
     * @param qo
     * @return
     */
    List<Iplog> selectAll(IplogQueryObject qo);
    /**
     * 高级查询总条数
     * @param qo
     * @return
     */
    int queryForCount(IplogQueryObject qo);

}
